<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">
<h:body>

	<ui:composition template="/WEB-INF/templates/1000_layout.xhtml">
		<ui:define name="head">
			<title>Groups</title>
		</ui:define>
		<ui:define name="content">
			<br/>
			<p:fieldset legend="Users">
				<h:form id="form">
					<ui:include src="/WEB-INF/templates/entity/user.table.xhtml" >
						<ui:param name="selectionBean" value="#{dtGroupPermissionView}" />
						<ui:param name="ajaxUpdate" value=":formGrp" />
					</ui:include>
				</h:form>
			</p:fieldset>
			<br/>
			<p:fieldset legend="Assign Groups">
				<h:form id="formGrp">
					<ui:include src="/WEB-INF/templates/entity/user.groups.table.xhtml" />
					<br/>
					<p:commandButton value="Save" action="#{dtGroupPermissionView.save}"/>
				</h:form>
			</p:fieldset>

		</ui:define>
	</ui:composition>
</h:body>
</html>